<?php

include_once("Database.inc");

class AuditLogs {
	
	
	/*
	 * Insert log
	 */
	public static function insertLog($login, $activity, $text) {
		$levels = array();
		$login = str_replace("'", "''", $login);
		$activity = str_replace("'", "''", $activity);
		$text = str_replace("'", "''", $text);
		$query = $GLOBALS["DB"] -> doQuery("EXECUTE sp_LogAuditEvent '$login', '$activity', '$text'");
	}

}

?>
